/*
 * @Author: wwssaabb
 * @Date: 2021-07-26 16:35:20
 * @LastEditTime: 2021-07-26 16:42:21
 * @FilePath: \react-admin-server\model\connect.js
 */

const mongoose=require('mongoose')

mongoose.connect('mongodb://joker:lx1094577536@8.129.105.10:27017/test',{
  useNewUrlParser:true,
  useUnifiedTopology:true,
  useCreateIndex:true
}).then(()=>console.log('数据库连接成功'))
  .catch(err=>console.log('数据库连接失败',err))